/**
 * Created by Vector on 17/7/23.
 *
 */

// 导出模块中的方法
// exports.world = function () {
//     console.log("Hello World");
// }

// 将整个模块导出

var hello = function () {
    var name;
    this.setName = function (new_name) {
        name = new_name;
    };

    this.getName = function () {
        console.log('Hello->'+name);
    };
}

module.exports = hello;